<#include "../../page.ftl" />
<#include "../../display.ftl" />
<table class="table table-datatable table-gray check_table">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkAll" type="checkbox" value=""></th>
        <th>会员类型</th>
        <th>产品名称</th>
        <th>价格</th>
        <th>周期</th>
        <th>成本类型</th>
        <th>成本金额或比例</th>
        <th>上门次数</th>
        <th>上门金额</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if ykTypesTable.rows??>
        <#list ykTypesTable.rows as ykType>
        <tr>
            <td><input name="ids" type="checkbox" value="${ykType.id?c}"></td>
            <td>
                <@display list=vipTypeList value="${ykType.vipType!''}"/>
            </td>

            <td>${ykType.productName!''}</td>
            <td>${ykType.price!''}</td>
            <td>${ykType.cycle!''}</td>
        <#--<td>${ykType.costType!''}</td>-->
            <td>
                <@display list=costTypeList value="${ykType.costType!''}"/>
            </td>
            <td>${ykType.costMoney!''}</td>
            <td>${ykType.doorNum!''}</td>
            <td>${ykType.doorMoney!''}</td>
            <td>
                <a class="btn btn-green btn-radio nopadding" onclick="return popAddOrModify(${ykType.id?c});"
                   title="编辑"><i class="fa fa-edit"></i></a>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if ykTypesTable??>
    <@page table=ykTypesTable formId="search_ykType_table"/>
</#if>